<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:a="http://richfaces.org/a4j"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:s="http://jboss.com/products/seam/taglib"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:rich="http://richfaces.org/rich"
	xmlns:rg="http://www.ruijie.com.cn/faces/ui"
	xmlns:c="http://java.sun.com/jstl/core"
	template="/layout/contentLayout.xhtml">

	<ui:param name="param_pageTitle"
		value="#{messages.luyuan_crm_menu_order}" />
	<ui:param name="param_navigationUrl"
		value="/luyuan/sale/layout/navigationSale.jsf" />

	<ui:define name="road">
		<span>拒收订单</span>
	</ui:define>

	<!-- content -->
	<ui:define name="content">
		<rg:areaPanel>
			<h:form>
				<rg:areaPanel type="searchPanel">
					<rg:fieldSet column="auto">
						<rg:inputText value="#{orderSupportManagerAction.uuid}" label="订单号" />

						<h:commandButton styleClass="button"
							value="#{messages.luyuan_crm_query}" />
					</rg:fieldSet>
				</rg:areaPanel>

				<rg:titlePanel headerTitle="拒收订单"
					style="margin-top: 10px;" needButton="true" readonly="false">
					<rg:table id="orderTable"
						value="#{orderSupportManagerAction.orderTableModel}" var="item">
						<rg:column property="id" title="订单号" />
						<rg:column property="orderType" title="订单类型"
							converter="#{orderTypeConverter}" />
						<rg:column property="orderStatus" title="订单状态"
							converter="#{orderStatusConverter}" />
						<rg:column property="saleman.userName" title="制单人" />
						<rg:column property="customer.name" title="购买会员" />
						<rg:column property="amount" title="成交额" />
						<rg:column property="support.userName" title="售后"/>

						<rg:column type="oper" title="#{messages.luyuan_crm_operator}">
							<ul class="links">
								<li><h:commandLink 
										onclick="UI.instance.showDialog({id:'confirmStatus', src:'/luyuan/sale/updateOrderForSupportManager.jsf?uuid=#{item.id}'});"
										value="指派售后">
									</h:commandLink ></li>
								<li><a:commandLink styleClass="button larger"
										onclick="UI.instance.showDialog({id:'changeOrderStatus', src:'/luyuan/sale/updateOrderForSupport.jsf?uuid=#{item.id}'});"
										value="取消订单">
									</a:commandLink></li>
									<li>
									<h:panelGroup>
                                        <a href="#{ctx}/luyuan/sale/orderViewForSupportManager.jsf?id=#{item.id}" class="button larger">详细订单</a>
                                    </h:panelGroup>
                                    </li>
							</ul>
						</rg:column>
					</rg:table>
				</rg:titlePanel>
			</h:form>
		</rg:areaPanel>
		<a:form>
			<a:jsFunction name="reRenderOrderTable" reRender="orderTable" />
		</a:form>
	</ui:define>
</ui:composition>